package com.niuwa.p2p.service.customer.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.customer.CustomerCompanyDao;
import com.niuwa.p2p.entity.customer.CustomerCompany;
import com.niuwa.p2p.service.customer.ICustomerCompanyService;

/**
 * 客户工作单位信息服务接口
 * 
 * @author zhangbo
 *
 */
@Service
public class CustomerCompanyServiceImpl implements ICustomerCompanyService {

	@Autowired
	private CustomerCompanyDao custCompanyDao;

	@Override
	public List<CustomerCompany> getCustCompayList(Long custId) {
		return custCompanyDao.getCustCompayList(custId);
	}

	@Override
	public int updateCustomerCompay(CustomerCompany company) {
		return custCompanyDao.updateCustomerCompay(company);
	}

}
